    /**
     * Created with IntelliJ IDEA.
     * User: 卞京帅{bjslogin@gmail.com}
     * Date: 12-11-25
     * Time: 下午2:25
     * To change this template use File | Settings | File Templates.
     */
    Ext.define('Airways.controller.system.operationlog.OperationLogController',{
        extend:'Ext.app.Controller',
        models:['system.operationlog.OperationLogModel'],
        views:['system.operationlog.OperationLogView'],
        refs:[
            {ref:'operationLogView',selector:'operationLogView'}
        ],
        init:function (){
            this.control({
                'operationLogView':{
                    afterrender:function(){
                    }
                },
                'operationLogView button[action=select]':{
                    click:function(){
                        var moduleName = this.getOperationLogView().down('textfield[name=moduleName]').getValue();
                        var opTypeName = this.getOperationLogView().down('textfield[name=opTypeName]').getValue();
                        this.getOperationLogView().getStore().loadPage(1,{
                            params:{
                                moduleName:moduleName,
                                opTypeName:opTypeName
                            }
                        });
                    }
                }

            });
        }
    })


